//
//  SetUpVC.m
//  Courses
//
//  Created by YiXuePxh on 15/5/28.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "SetUpVC.h"
#import "SetUpCell.h"
@interface SetUpVC ()<UITableViewDelegate,UITableViewDataSource>

@end

@implementation SetUpVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"设置";
    // Do any additional setup after loading the view.
    CGSize screenSize = [UIScreen mainScreen].bounds.size;
    UITableView* table = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, screenSize.width, screenSize.height) style:UITableViewStylePlain];
    table.tableFooterView = [[UIView alloc]init];
    [self.view addSubview:table];
    table.dataSource = self;
    table.delegate = self;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return AutoFloat(80);
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSString* identifier = [NSString stringWithFormat:@"cell%ld",(long)indexPath.row];
    SetUpCell* cell;
    if (!cell) {
        cell = [[SetUpCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
        cell.imageName = @"setUp.png";
        cell.text = @"仅在WiFi环境下观看视频";
    }
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
